<script setup lang="jsx">
const { router, } = useNavigation()
defineRender(() => {
  return (
    <div>
      {Array.from({ length: 10, }).map((item, i) => {
        return (
          <div
            key={i}
            style={{
              cursor: 'pointer',
              lineHeight: '2', 
            }}
            onClick={() => {
              router.push({
                name: 'Detail',
                query: { id: i, },
              })
            }}
          >
            {i}标题标题
          </div>
        )
      })}
    </div>
  )
})
</script>
